<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上传案例</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/reset.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Plugins/FontAwesome/css/font-awesome.min.css">
<script type="text/javascript" src="__PUBLIC__/JS/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Plugins/Artdialog/jquery.artdialog.js?skin=bootstrap"></script>
<script type="text/javascript" src="__PUBLIC__/Plugins/Artdialog/plugins/iframeTools.js"></script>
<script type="text/javascript" src="__PUBLIC__/Plugins/Etfile/JS/etfile_use.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Plugins/Etfile/Css/etfile_use.css">
</head>

<body>
	<h1>单图</h1>
	<span class="et_upload_btn bg_blue" id="upbtn_single"><i class="icon-picture"></i> 上传缩略图</span>
	<div id="uploadResult_single" class="et_file_list">
	</div>
	<h1>多图</h1>
	<span class="et_upload_btn bg_blue" id="upbtn_more"><i class="icon-picture"></i> 上传图集</span>
	<div id="uploadResult_more" class="et_file_list">
	</div>
	
	<script type="text/javascript">
		var upload_config = {};
		
		function dealSelectFile(data){
			etDealSelectFile(data,upload_config);
			art.dialog.list['upWin'].close();
		}
		
		$('#upbtn_single').on('click',function(){
			upload_config.upload_field = 'single'; //上传的字段名
			upload_config.upload_box = 'uploadResult_single';  //文件显示位置
			upload_config.maxnum = 1;  //最大数量
			upload_config.cover = true;  //是否覆盖之前存在的
			
			art.dialog.open("http://127.0.0.1/dev/etwxs/v5/rest.php?s=FIL/Index/index",{id:'upWin' ,title: '上传单张文件', width:800,height:500,fixed:true});
		});
		
		$('#upbtn_more').on('click',function(){
			upload_config.upload_field = 'more'; //上传的字段名
			upload_config.upload_box = 'uploadResult_more'; //文件显示位置
			upload_config.maxnum = 10; //最大数量
			upload_config.cover = false; //是否覆盖之前存在的
			
			art.dialog.open("http://127.0.0.1/dev/etwxs/v5/rest.php?s=FIL/Index/index",{id:'upWin' ,title: '上传多张文件', width:800,height:500,fixed:true});
		});
	</script>
</body>
</html>
